Don't allow redirects to another host.
Add factory to support new specs.