I think it would be clearer if this block set local redundancy, channelsPerNode, replicateOffset variables and called setRoxie() once after setup. It's not particularly clear at moment (to me at least) what e.g. spec.setRoxie(1,1,0) does without looking at the implementation.