Move pub related code into its own directory.