Use the tablemodel code from the generic codebase.