Refactor form saving into behavior.

@jeanettehead17