Move some entity algorithms
Move reloadDefs command to eclassmgr.