Ensures that states set for a particular stage are not attached to other stages which may not need them.