tomd: remove legacy segrid code