IMO this should just be a function in the module scope, not a classmethod.