Refactor the FormModel and the nested_collection_form_test.rb