What’s the best way to integrate third party code without cluttering your code? I think we should abstract all the interaction you need into an interface and let a delegates implement those interfaces.
The advantages are:
1) Separation of interface and implementation
2) Unit testing by mocking interface rather than mocking third party code.
3) Maintainable code due to single point of contact(package) with third party code.