Move the creation of a form's definition from the .association method to its own method.