Remove the DocEntity type. Fixes the problem with duplicate error messages at