Utilities for creating diagram-building tools