Get rid of lookup_ksym function, replace with a map.