Refactored a VST3 state method.