Split the diagram code out so it doesn't appear in the main article.