Avoid flattening restrict/retrict when native predicates are involved.