move indexBy to new method, refs #158