Adjust directory and code inheritance structure.