Add apply_rules method to Validator.