Refactoring APIs with Deprecation : Kotlin