Simplified the generated code for "create" operations.