Changed anonymous closure to proxy to existing method.
Refactored service provider code
Tested functionality that was previously inside anonymous method