I would create one service object for that.

eg. TrelloCallback.new(raw_input).run

def raw_input
  request.env['rack.input'].read
end