Refactor: extract method createJob