Move constructor code to cpp file