Remove unneeded modules