Factor out comparison of Instruction "special" states.

No functional change.