Replace underscore dependency with lodash