Unifying names in diagrams