extract same update functionality into a function
extract same update functionality into a function

artur-s/Paket,theimowski/Paket,ctaggart/Paket,vbfox/Paket,mavnn/Paket,simonhdickson/Paket,mrinaldi/Paket,konste/Paket,sergey-tihon/Paket,mrinaldi/Paket,NatElkins/Paket,robertpi/Paket,jam40jeff/Paket,Stift/Paket,MorganPersson/Paket,baronfel/Paket,snowcrazed/Paket,mavnn/Paket,LexxFedoroff/Paket,simonhdickson/Paket,ctaggart/Paket,cloudRoutine/Paket,artur-s/Paket,NatElkins/Paket,0x53A/Paket,vasily-kirichenko/Paket,betgenius/Paket,inosik/Paket,inosik/Paket,thinkbeforecoding/Paket,antymon4o/Paket,NatElkins/Paket,betgenius/Paket,mexx/Paket,vasily-kirichenko/Paket,isaacabraham/Paket,mausch/Paket,devboy/Paket,0x53A/Paket,konste/Paket,robertpi/Paket,isaacabraham/Paket,devboy/Paket,Stift/Paket,jam40jeff/Paket,MorganPersson/Paket,vbfox/Paket,ovatsus/Paket,lexarchik/Paket,cloudRoutine/Paket,0x53A/Paket,isaacabraham/Paket,ascjones/Paket,jonathankarsh/Paket,magicmonty/Paket,colinbull/Paket,LexxFedoroff/Paket,sergey-tihon/Paket,robertpi/Paket,mrinaldi/Paket,matthid/Paket,fsprojects/Paket,MorganPersson/Paket,snowcrazed/Paket,Thorium/Paket,lexarchik/Paket,mrinaldi/Paket,simonhdickson/Paket,Thorium/Paket,dedale/Paket,vbfox/Paket,robertpi/Paket,matthid/Paket,vbfox/Paket,magicmonty/Paket,theimowski/Paket,lexarchik/Paket,Thorium/Paket,lexarchik/Paket,0x53A/Paket,kjellski/Paket,colinbull/Paket,antymon4o/Paket,simonhdickson/Paket,fsprojects/Paket,cloudRoutine/Paket,magicmonty/Paket,Stift/Paket,mexx/Paket,ascjones/Paket,thinkbeforecoding/Paket,jonathankarsh/Paket,Thorium/Paket,NatElkins/Paket,dedale/Paket,baronfel/Paket,snowcrazed/Paket,mausch/Paket,Stift/Paket,thinkbeforecoding/Paket,kjellski/Paket,ovatsus/Paket,snowcrazed/Paket,magicmonty/Paket,MorganPersson/Paket,cloudRoutine/Paket,matthid/Paket,matthid/Paket,isaacabraham/Paket,thinkbeforecoding/Paket