Major refactoring of repository views.