def sanitize_ctx(request, ctx):
    """Keep just the known context fields."""
    nb_path = ctx.pop('nb_path', None)
    if ctx:
        request.log.debug('Ignoring context fields: %s', ', '.join(ctx.keys()))
    return {'nb_path': nb_path}
