Remove method definition

When a function is define as a method like this:

function foo:bar(arg1, arg2)
    self.field = arg1 + arg2
end

It should be reformatted to:

function foo.bar(self, arg1, arg2)
    self.field = arg1 + arg2
end