table builder: refactoring/simplifying list-table builder