Remove unneeded transition rules