Certainly for reviewing purposes, this whole function is a bit messy in terms of control flow. I do believe that these changes are equivalent. _Originally posted by @DJMcNab in https://github.com/oli-obk/priroda/pull/46#discussion_r602726637_