remove the replace method on SegmentComponent