Assuming https://github.com/spring-projects/spring-framework/issues/33885 is backported, we can remove the restriction.