Removing modules that are exported by their descendents