Make functions which are used only once anonymous

Trimmed down to 3992 bytes!