Refactor codes using 'Keyword argument' of Ruby 2.0