Pull configuration out of constructor and into new method.