Refactoring transmission file: Extract and spec class for EDI Policy loop