Factor out creation of set requests.