Reorganize by directory.