[PATCH 04/32] ns: move to_ns_common() to ns_common.h