repo prune: Initial implementation
repo prune: Refactor to make it less horrible