Rename is_weight to weight_validator.