Uses AST to find and remove unused dependencies in AMD modules.