Reorganize the codebase.