Externalization of queries to services.