> There's some duplicated code between the `if` and `else` branches here _Originally posted by @alexdewar in https://github.com/omicsNLP/Auto-CORPus/pull/263#discussion_r2104571254_