createVariant(): generalize the function for future utility use; return ...

...newVariantId