Replace getJobType with an instanceof check