Replace build_dated_formula with class-based new syntax.