ENH: Finished first round of the refactor, all modules compile.