Introduce RepositoryManager and avoid duplicates in repo list