Fix #2222751. Typehint for ConfigFactoryInterface not ConfigFactory