Refactoring to data-driven: transformations WMath