Lines 22 and 25-27 can be simplified to this:
```ruby
files = track_data["file"]
track_url = files[files.keys.last]
```