Redundant code removal