Since we pick a new color every time we add a new subscription and recomputing the available colors was linear in the number of subscriptions, we were doing quadratic work on page load. (imported from commit 647ff3cb82f405755711da47701f005e7bc0023e)