Kotlin encourages grouping related code in a single file, which is useful — until files grow past 1,000 lines. This article explores why that happens, how it …