Handle validator options more elegantly.

Closes #3.