VST3 hosting fix.
Refactored a VST3 state method.