Separated the repository loading in RepositoryManager