Break process_sdn_node into several methods.