Broke out canonicalization from building the SmallSides and assigning IDs. Seems to work.