Remove globals from executed modules