Moved repository listing into its own method.