Move NSDP protocol handling to a separate file.