Factor access token retrieval into Plugin