Refactors to reduce duplication and wrap API calls