Removed repository def's coupling to EntityDef