Implement a Extract Private Method refactoring for Ruby