I'm still not 100% thrilled with this, but I won't hold up the merge because of it.  Can you please add a trello refactor card (or a comment to the card that talks about pulling out the list/map datastructure) to revisit this function and look for a more clear/explicit way of doing this?