I was able to remove the warning by adding @Role(BeanDefinition.ROLE_INFRASTRUCTURE)
@Role(BeanDefinition.ROLE_INFRASTRUCTURE)