Rearrange the directory structure.