Remove restore from global to allow for multiple instances of useref.