cosmit : inline extract_instance