Retrofitting Legacy Foundries for Sand Casting Upgrades