It would be good to move the code from each of the cases of this switch statement to their own functions. The code would be more readable that way. _Originally posted by @jmaack24 in https://github.com/NREL/SolTrace/pull/75#discussion_r2461839984_