Extract classes from ~.validation.beanvalidation without a direct dependency on beanvalidation. See gh-30644