For each class in the file that mixes public static methods with instance
state, extracts the public static methods to module-level functions inserted
immediately above the class, then removes them from the class body.
ClassName.method() references in the same file become method(); imports
and call sites in other files that import the class are rewritten too.
Idempotency: After extraction the class no longer has static methods, so a
second run finds no violations and makes no changes.
For each class in the file that mixes public static methods with instance state, extracts the public static methods to module-level functions inserted immediately above the class, then removes them from the class body.
ClassName.method()references in the same file becomemethod(); imports and call sites in other files that import the class are rewritten too.Idempotency: After extraction the class no longer has static methods, so a second run finds no violations and makes no changes.