Its currently just used here a helper function would be enough. In case we need it somewhere else we could introduce some sort of helper class.