Refactor freshbooks apiClient