Refactor content_history_free_entry