Change key -> path in FactoryDefinition class