Removed unnecessary _local_update_namespace nested function