I had a similar reaction when I wrote this code 6+ months ago...