Make EntityId constructor non-public