Generalization of make_quadrature