Clean up code: refactor getJob() in ViewResolver