Pulled up common setup code to super class.
Reformat.