Update factories.rst

your factory method should be static to work!