We do not need to make these traits generic over QueryId type, we can just use the QueryId alias everywhere