Properly @Autowire QueryTemplateFactory