Refactored out some common code to the Structurizr project.