🎨 Replace Identities helper with Kotlin version