I might’ve misunderstood the suggestion, but I still fail to see advantages in comparison to the pure way of replacing dependencies that deals with all dependencies, assuming details like the same name+version length:
I mean, organizing more use of that seems better to me than trying to come with something similar again.
EDIT: and of course, then there’s this one already, too: