Remove helper function in rule_transitions.cc