ActiveSupport has added Object#with which has recently landed in core.
https://github.com/rails/rails/pull/46681
Currently, Criteria uses with method which is a naming conflict. Possibly acceptable to keep Criteria as-is, but the team should consider the ideal spec here.