Factor out config into its own namespace.