move the table row applier code into a class to DRY it a little