Refactor static classmethods.