private List<ShapeId> excludeTraitsInSet(List<ShapeId> traits, Set<ShapeId> shapeIds) {
        return traits.stream()
                .filter(trait -> !shapeIds.contains(trait))
                .collect(Collectors.toList());
    }
Removes traits from {@link AuthDefinitionTrait} and
{@link ProtocolDefinitionTrait} traits that refer to removed shapes.
smithy-model/src/main/java/software/amazon/smithy/model/transform/plugins/CleanTraitDefinitions.java