This was a pattern @nealstewart showed me, it makes it simple to substitute the UserFactory for a stub during tests!

Could you suggest an alternative approach?