PolylinePipeline.removeDuplicates clean up.