Migrate to Kotlin.