Automatically refactor Ruby methods.