Split table definitions and types out of tables.js