This document discusses using metrics to identify areas of code that need refactoring. It outlines some common metrics like lines of code, number of defects, and cyclomatic complexity. While metrics can help identify problem areas objectively, they must be easy to understand and provide actionable data. Refactoring involves small incremental changes that improve code quality without changing external behavior. Code smells indicate areas that would benefit from refactoring, and metrics can help identify smelly code. Sample refactors are also discussed.