Replaced bootstrapper with config to simplify unit testing.