Is there a better way to do this? (multiple switch statements with repetitive names) - C#