We have it in two places (below in `lib/shelly/helpers.rb:195` -- https://github.com/shellycloud/shelly/pull/102/files#L3L195). Maybe We should move it to separated helper method? It wouldn't be a triumph of form over content?