replace all occurences of deprecated get_is_part_of_model with get_model