Moving more code from wrangler to topotools.