Refactored top level repository.