Extract form_resetter into method. Is useful for updating form programatically.