Refactored work_factory_spec