EZP-22465: extract service to remove coupling between factories