Maybe take the segmenter as an argument?