Simplify integrate.gen_trapz_mult().