maybe these validations could be a method on the BucketCountThresholds object?