Extracted UnitOfWorkFactory. Unboxing Option<> when setting in Context.