To answer your q (btw it's not a popup), I tried to explain in my comment you're replying to:
> sometimes I do the thing that works/is quickest to do, move on, and then revisit when I have time
Knowing me, it was probably something where, at the time of building (2015), I saw elsewhere - naively assumed it was a good idea/it works, copied it and moved on. I didn't give it as much thought as I could have. Now it's a case to prioritise that and improve it, along with some other much needed optimisations.