Refactors API calls so using hashed meatada and dynamic methods.