Cleanup of nn_div.