Yes, I didn't think about the fact that I grab `api` as a reference to the global object. I think I can use `_.clone()` to clean this up.