This will help keep the code on the pages focused more on the page-specific stuff like form handling, and less on the raw api. Plus, by having it all in one place, it can be cached and also we can use any api from within any page.