Moved proto into its own library