See previous comment on how to define factories.