Remove `validate` function.

See #375.