Two switches were used to convert from the old a new statuses definition.
This MR reduces the amount of code used to convert statuses from old and new statuses by using a map.