Extract the enable/disable-and-route decision out of
useFeaturePreviewCommands into a pure resolveFeaturePreviewToggle
util, and unit test every permutation: disabling, enabling with a
route, enabling outside a project-scoped page, missing ref, and
previews without a route.