Simplify promise approach for API response.