Migrate to lodash