Refactor skoolasm.TableWriter