Code to flatten CellML 1.1 models into 1.0 models