Split class generation to separate .hpp and .cpp files.