Update or Replace? How to Know If Your Legacy Application Is Worth Saving