Extract search validations into a separate mixin