Remove dependency on lodash.