Could we have a bunch of constants in allowedToDeleteComponent() that represent the "possible" message texts? The call from removeComponent() would be allowedToDeleteComponent(component, self, DependencyChecker.COMPONENT_IN_USE_BY_ACTION).