All the if/else blocks could be simplified to ```identifier = LEAF_TYPES[l & 3];```.