Prettify code using lodash