Split out the configuration stuff into its own file.