There's ```amo.tests.req_factory_factory``` that does this.