move repository-creation utility into RepositorySetup