Paulo, Cal & Sam: Refactor utils to pull common util code into forms.