Move some common gentoo packagers code to the mix-in class