The preceding three lines should be DRYed out into a little helper function instead of being copied from AllJobsCancelled.