Moved QueryRewriter to server-api