Refactor to reduce cognitive complexity
Refactor to reduce cognitive complexity

neinteractiveliterature/intercode,neinteractiveliterature/intercode,neinteractiveliterature/intercode,neinteractiveliterature/intercode,neinteractiveliterature/intercode