Move common methods into common_job class.