IHMO this is not needed here because you already did that in the operator variant logic. This code is the same code introduced in this patch for the operator_variant.js file.