Remove methods that were deprecated as part of this PR https://github.com/spring-projects/spring-security/pull/12237