I'm not in love with the exact same code from riak_test being duplicated here, I can't think of anything better to do in a timely fashion. Just let the record show that we should do something about it eventually