code restruct: unify medium workunit struct passed along between workers