src/graph_instance.c: Move "inst_get_selector_from_params" into an own function.