Replace reference with const reference wrapper.