Some refactoring in BodySegment.