OPSMN-1343: The migration logic was written to handle on entity and entity attributes. However JHU is using categories as well. Made changes to handle both plain entities and categories.