ExtrationTrait for criteria