Move Slot name definition outside of a condition