See https://github.com/CentralReport/CentralReport/pull/70/files#r4719125 for the same idea