Otherwise one can use a "null rule" which has the form of the above quadrature rule, but whose value would be zero for a simple integrand (for example, if the integrand were a polynomial of the appropriate degree).
Alternatively, one could employ a "null rule," which follows the same pattern as the provided quadrature method, but evaluates to zero for straightforward integrands (such as polynomials of the appropriate order).