Extract transition configuration, SOLID-ify transition

@alexpeachey @brianvh please review
We can't do this. We want two separate arrays, one for success_messages and one for failure_messages.