Change some classmethods to staticmethods.