Refactor FakeHTTP setup to make it more amenable to reuse.