Remove deprecated modules.