Moved the get_repository utility to the generic utilities and made it
return the default repository if no name is specified.