refactor LocalFactory, changed DefinitionTypes constants values.