refactor type_ids_modelable_spec
merge