Abstracts api keys into three types