Move get/set token for DRY