plugins/nightlight: Shuffle some code
Keep things that are related spatially close, in this case, the initialization of the timer that will start the next transition.
Keep things that are related spatially close, in this case, the initialization of the timer that will start the next transition.