[hooks] use cubicweb.predicates instead of cubicweb.selectors [reviewed]