Clean unneeded modules.