Remove unused table lookup function