Refactor request factories (use lodash)