KnowInk Interview Question

How would you approach refactoring a legacy Ruby on Rails application?