Remove code that is no longer in use.
When requeueing a job in COMPLETING status set its state
to JOB_PENDING and preserve the flags.