Remove code segment