PIM-2565: Override RepositoryFactory to use RepositoryRegistry