Add generation of UnitsFactory