It depends. There are cases where the intent of the designer is bat-shit insane and it&#x27;s just not worthwhile (after a while) to really get to grips with the code. There are times when it&#x27;s best to rip out the code and replace it entirely.<p>Admittedly, this occurs less frequently than when refactoring would be appropriate, but it does occur.