That doesn't really solve the issue because `removeComponent` would still decide what message to show. And the call to `allowedToDeleteComponent` you showed doesn't really look right to me. The whole point is that, ideally, the error message would be displayed in the `DependencyChecker`.