Safely refactor code with test coverage as a safety net. Use `--diff` to simplify just the current working diff before committing.