Remove unneded modules