generate_nfqueue: code cleanup