Deprecate `Class` handler in `PredicateBuilder`

Users should pass strings to queries instead of classes
Merge pull request #17916 from mrgilman/deprecate-class-handler

Deprecate `Class` handler in `PredicateBuilder`