Break out addVariant directive in example.