Move class definition from executable file to source tree.