Should this be done with a dictionary instead? This is almost a case statement. @JLMcLaugh or @tdphillips, opinions?