You could write a helper method that takes a RENDER_STEREO_MODE parameter and returns a CVariant object (or pass that in as an out-parameter) and call it from here and from above to save the code duplication.