LPS-34021 Add capability for -shared plugins
LPS-34021 Simplify