That structure seems enlightening to understanding how Telegram has been able to create clients for so many operating systems in a relatively short time.