Refactor setting up writes in the redis driver