Enable defining scopes on query classes