[RF] Abstract out some common functions
[WIP] API keys