Reorganize directory hierarchy.