externalize EntityService