Remove unused functions and replace these by archlinux aui sharedfuncs