Issue #2184231 followup by dawehner: Use ConfigFactoryInterface to type hint ConfigFactory.