Make it compatible with factory_boy-2.0 by swapping the set_creation_function by a class method.

There is