graph_def.c: Split the config handling into two functions.