Improved creation of RowFactory for the ticket table.