Smarsh Interview Question

How would you approach refactoring code when implementing new features into an area.