libaudgui: Deduplicate some of the infowin code.