Should I move this reusable function (used for both gpiiStore & gpiiSession components) into another file?