Factor out configuration.