Separating token fetcher to make it mockable.