Move query combinators to the core module.