Reduce to essentials.
Some refactoring and changes to correct the reading of nested ports from
workflows.