Some basic refactoring of riak_test config and local functions