Move error and form functions into a new util namespace.