Remove other unneeded modules.