Consolidate getting next var number into nextVariationNumber method.