Refactored spreadsheet related code out of table.vim