RubiconMD Interview Question

How do you approach refactoring code?