Moving all implementation in header files to .cpp files.