I'm afraid this only mitigates problem here a little it won't actually solve dedup problem I'm afraid. 
What about peer dependencies I think that will solve dedup in a same way as this does