Make the cli code use the job factory too.