Minor: Rather than needing this much copy-paste, you might consider having a single array of values (`['A', 'B', ...]`) that gets rebuilt into the structure you need.