Cleans up preempt_pending helper functions