Refactors RepositoryModel