Remove unused code from LegacyHookPreAuthenticationProvider