Purifying legacy code.