Describe a time you had to refactor a legacy automation suite. What metrics did you use to measure success?