Clean up node hash building process