Finds and removes unused dependencies in AMD modules.