Move all field initialization to the constructor.