You can use gateway classes to organize external API integrations and establish a clearer separation of concerns. https://mattbrictson.com/blog/gateway-pattern