Small refactor, code consistency https://github.com/KanoComputing/peldins/issues/949