To prepare for running multiple tests on bitcoind with different options each time, we extract the common code into its own file.