Extracted variant getter to add more flexibility