Remove unneeded segment.