Rearrange gating workflow.