Companion object vs top level declaration

I think it was discussed a lot of times. Global functions pollute global name space and make it hard to use auto-completion. Companion object function in most cases is much safer. I would recommend using global functions either in very small projects, or in cases you do need for them to be global.