Convert create function from usage to Kotlin

This commit is in preparation for KT-1925 (https://github.com/JetBrains/kotlin/pull/454)