Yet more code cleanup of recursive trapezoid integral.