cleanup.Globals function

Drop certain types of globals