Create DomainFactoryRegistry class.