Added update_nsmap utility function and integrated it into _BaseUpdater