Tell me about a time you had to work with a legacy system or codebase and how you navigated its limitations.