This piece of code was added to the legacy dash by @adampalay You may want to ask him the reason for using it.