Moving updates of the yaml-file out into a seperate function.
Also, makine bandaid-tearoff update the file.