Remove distance measure.