Who cleans up orphaned extension dependencies?

Hey,
when installing and removing any XWiki extension that installs extra dependencies, there are remnants.

Reproduction steps:

  1. Install “Diagram Application (Pro)” (this XWiki SAS extension pulls in “Licensor API”)
  2. Uninstall “Diagram Application (Pro)”
  3. Search for “Licensor API”
  4. See that this extension installed by the Diagram Application is still installed

The distribution wizard has a orphaned dependency cleanup. What is the solution for manual extension installs? Am I missing something?

I can only imagine uninstalling every extension manually and checking if something still depends on it.