Factored out common piecewise creator functionality in base class.