refactor(requester): isolate function as higher-order functions