Factor making WAVEFORMATEXTENSIBLE out into a function