Get rid of lodash, use trivial implementations instead.