Refactor jobtool.