Some refactoring on code.

1. Make all the processors as member variables instead of local variable.
2. Make clusterConfig as member variable instead of local variable.

Now the code looks much shorter since we don't need to pass processors
around.