Rearrange directory structure.