Restructure code to improve maintainability or design while preserving documented behavior and interfaces.