Refactor CompileUnit into a separate header.