Replace all calls to getPageVariant with getVariant (see #2285793)