@Override
    public Model onRemove(ModelTransformer transformer, Collection<Shape> removed, Model model) {
        return transformer.replaceShapes(model, getModifiedOperations(model, removed));
    }
Removes references to removed structures from operation
input, output, and errors.
smithy-model/src/main/java/software/amazon/smithy/model/transform/plugins/CleanOperationStructures.java