May make sense to have a single function to get repo given that it's retrieved in basically the same way both here and in `reload` below