Move the FormModel class on its own file, under lib/ directory.