Remove duplicate dependencies.