Improvements to dependency de-re-duplication