Refactor to support the use of a different repo.