Issue #2420107 by alexpott: Determine which config entities can be fixed and which will be deleted when a dependency is removed