Move member functions to its own cpp file.