Fix all workflow.
Refactor id validation to factory