Reuse already defined variable

The REVERTING variable is already defined as flow state. Reuse
it for the task state.

Change-Id: Ied67118be79e3ac933d5b7006720b72f8dc441b4
Merge "Reuse already defined variable"