❔ How would you refactor something like this? Is there a pattern that could help me? - C#