Re-structure repository.