Refactoring to convert extension function to member


#1

Is there a refactoring that will turn an extension function into a member function?
I cannot find it.

class Foo
fun Foo.bar() = println("Hello")

should refactor to

class Foo {
    fun bar() = println("Hello")
}

#2

Currently no, please vote/follow https://youtrack.jetbrains.com/issue/KT-27996