Refactor directories.