Remove local sharedPlugin variable

* Top level static variable now takes assignment instead.