COMMON: Move Model function definitions to a cpp file