Simplify addRepositories method