Remove obsolete modules.