Make the code more DRY

12 jobs for processors in 13 minutes and 25 seconds (queued for 6 seconds)