Fix dependencies between states.
Fix dependencies between states.

Signed-off-by: Krzysztof Wilczynski <9bf091559fc98493329f7d619638c79e91ccf029@linux.com>

ministryofjustice/metrics-formula,ministryofjustice/metrics-formula,ministryofjustice/metrics-formula,ministryofjustice/metrics-formula,ministryofjustice/metrics-formula