This Extension on Leg is to generate the code for a copyWith(...) function.
Available on Leg, provided by the $LegCopyWithExtension extension