Convert create function from usage to Kotlin

These commits are in preparation for KT-1925 (https://github.com/JetBrains/kotlin/pull/454).