Dimensional deconstruction and Wess-Zumino-Witten terms