I'd like to move this out of the file- MixpanelAPI is already pretty complex, and it seems like this object has one job to do.