Move table name resolution to table parser