refactor

Code refactoring patterns - extract, split, restructure without changing behavior.