Use PrefixMap and LAZY_TYPE for parsing pan mode