Add to factory to load the config.