U: refactor getRepo()