Code generator to switch between non-temporal, uni-temporal and bi-temporal models while preserving data.