Extract common code into the common form element template.
Form generation code.