minor refactor of Transition#initialize, factoring out 2 private methods