Refactoring in galley
Add fix and test for plugin version expression reading when in a profile