Move constants out of trace_contour