Move jobs logic into jobs package and out of controller + other stuff