For complex or recurring rules it makes sense to put the implementation in a seperate function. However, a function call on its own is nat a valid validation-expression:
validate::validator( f(x) ) fails with 'invalid syntax'.
As a workaround validate::validator( f(x) == TRUE ) does work.
Tested with version 1.1.3.