Extract transaction table code into a new class.