Following #29811, all FailureAnalyzer implementations should use constructor injection for BeanFactory and Environment instead of implementing BeanFactoryAware and EnvironmentAware interfaces.