Split code into a demo file and a fedora api class.