Refactor pig_latin.rb