cpp: Moved some of enpoint to cpp file
cpp: Moved some of common to cpp file