Replace staticmethod with classmethod where applicable.