Refactor importing factories

Factories can now be in just ``myapp/tests.py``.