Warn of unused dependencies when generating the modularized build.
Remove unused dependencies.