Indeed, this is one of the moment where you look back at your old code and think _ew_  
https://enyojs.atlassian.net/browse/ENYO-3641