Configure QueryRepository for simple repositories configured as services