Remove unnecessary trap.