Pull client code into its own file.