DRYed some VST3 code