Finish the separation out of the global nodes list into nodes per function or per external_entry_point.