Converts unpickle to a static method.