Move auto-generated code out of form code file.