Added a Repository manager service so that the same logic is not replicated in both the RepositoryManager and RepositoryContainer types