Refactor riak backend configuration