remove obsolete modules from managed deps.