Introduced inheritance to simplify representation of variants.