I found your article while I was looking for patterns examples in Kotlin ... loved it (and loved its [more advanced] sequel)
The factory was missing, so (even if it's quite straight forward) I've written an article about it.
I wonder if you have other (better) solutions.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.