How do you approach the project lifecycle when taking over an underperforming team or legacy codebase?