Remove dependency on entity_view_mode.