Move more common code into base class.