def METHOD_NAME(self, config):
    """Extract settings from a config object"""
    settings = {
        'host': config.get('sd_backend_host', DEFAULT_ETCD_HOST),
        'port': int(config.get('sd_backend_port', -1)),
        'username': config.get('sd_backend_username', None),
        'password': config.get('sd_backend_password', None),
        # these two are always set to their default value for now
        'allow_reconnect': config.get('etcd_allow_reconnect', DEFAULT_RECO),
        'protocol': config.get('etcd_protocol', DEFAULT_ETCD_PROTOCOL),
    }
    return settings