Introduce a FormModel class to provide common functionality.