extract Riak communication to separate module