Pass dependencies through to legacy factory.  Fixes #270.