Move code from Main.cpp to the include dir.