Rewrite PropertyMetadata in Kotlin