[TASK] Refactored GroupHeader to bereusable by other TransactionTypes
[TASK] Refactorings for more generic filebuilding