Extract building code from Dopri and Radau to mixin