Refactoring directory.