The configuration of the validator is fine, but it makes the actual validation code rather less readable. I'm a big fan of only building the system that you need now, and not trying to extrapolate to everything you might need.