create-package-feed.pl: Split script into functions