yl - refactor decoder.rb to use in_groups from active_support