Move `interpolate` out of `trace_contour