How about:

```ruby
rel = transition_hash.keys.first
```
Should this be paranoid and raise if transition_hash.keys.count > 1
Also, regardless, this will fail if transition_hash is nil