DI: fixed compatibility of 'factories' in config