Extract common functionality to ApiEntity.
This model is no longer used.