Extracted some Dying Screen logic