Change in osmocom-bb[master]: mobile: rework writing BA to file, move to a function