Remove redundant transition.