Refactored job and related nodes creation logic into job model instead of routes