I think that it would be better to map the specs to the root spec and the `uniq` them. Because a subspec can be installed without the parent.