How do you approach refactoring a legacy system that has minimal documentation but is critical to daily business operations?