Refactor table creation into single function that accepts a file name.