Possibly your code is a usual pattern. And I showed that I am still a newbie in JS county whose brain is not yet used to such patterns? :/