Extract languages and entity type to entity_properties.h, introduce StaticBaseLeafClass and BaseLeafClass as category heirchary options