beforeValidate code was removed in e140fad as part of CO-2294. It looks like it got dragged back in as part of a946724 (PR #282, CO-2294).