Adding service for creating a query object from a request.