getTwoFactorMethod should be static