seems you could DRY this up a lot and maybe use your trialing ifs etc below (fitting on one line) if you define:

```ruby
options = {  resource: resource_name, state: state_name, transition: curr_transition.name}
```