Unify integration order calculation, add UExtFunction.