Refactor the FormModel and SubForm classes. Provide more cohesive methods.