There should be more graceful error handling of the case where `adapter` is missing from the configuration.