Move error and form functions into a new utils namespace.