Reduce duplication in the structured pdc renderer ##pseudo