In reply to arne cordes.

Thanks for sharing your experiences. Yes, I echo your advice. It is too daunting to attempt to rewrite 10 or 20 years of legacy code. Instead, start by doing two things:
1. Figure out which analyses are taking a long time and investigate converting those analyses to CAS.
2. Consider writing new analyses in CAS, when appropriate.