Implementation functions relating to lacinia types.
(lacinia-type entity config)
Given an entity, infer its lacinia type.