Clean up parse table lookup function