Simplify the logic around choosing which state to transition to
Simplify the logic around choosing which state to transition to

Removes the need to switch on type

alphagov/publishing-api,alphagov/publishing-api