nx-match: Factor redundant code out of nx_put_match().