   end
 
   def handle_call({type, {{_, _} = token, repo_xref}, args}, _from, state) do
-    {token, state} = raw_token!(token, state)
-    res = do_handle_call(type, {token, repo_xref}, args)
-    {:reply, res, state}
+    use_token! token, state, fn token ->
+      do_handle_call(type, {token, repo_xref}, args)
+    end
   end
 
   def handle_call({type, {_, _} = token, args}, _from, state) do
-    {token, state} = raw_token!(token, state)
-    res = do_handle_call(type, token, args)
-    {:reply, res, state}
+    use_token! token, state, fn token ->
+      do_handle_call(type, token, args)
+    end
   end
 
   def do_handle_call(:get_pr, repo_conn, {pr_xref}) do

  end

  @doc """
  Given an {:installation, installation_xref},
  look it up in the token cache.
  If it's there, and it's still usable, use it.

        {{:raw, token}, state}
    end
  end
  def raw_token!({:raw, _} = raw, state) do
    {raw, state}
  end
