public Model removeTraitsIf(Model model, BiPredicate<Shape, Trait> predicate) {
        return filterTraits(model, predicate.negate());
    }
Filters traits out of the model that match a predicate function.

<p>The predicate function accepts the shape that a trait is attached to
and the trait. If the predicate returns true, then the trait is removed
from the shape.

@param model Model to transform.
@param predicate Predicate that accepts a (Shape, Trait) and returns
 true if the trait should be removed.
@return Returns the transformed model.base.
smithy-model/src/main/java/software/amazon/smithy/model/transform/ModelTransformer.java