Use identify_new_type() instead of duplicating it.