Trim the codebase to remove unused functions and folders.