Move inline functions to the cpp file.