Pull out remote listing functions in git-remote.