NDArray: use util methods, remove local analogs