Fix entity version handling
Check if metadata is enabled for entity group key / version usage.