Remove shared pointer Global.