Breaking Peerpipe class off into its own file.