Refactor table console output to be even more generic