Service providers may fail and also be out of reach of testing due to their extensible nature.
One way to mitigate problems is to wrap anything that comes from extension points.
Doing it by hand is possible but time consuming and tedious.
An automated code generation would be better.