Clean up createFormInstance