Cleanup and formatting of Repository#index