from typing import Dict
from typing import Any


def filter_legacy_params(decoder_params: Dict[str, Any]) -> Dict[str, Any]:
    """Filter legacy parameters for decoders from old data."""
    new_params = decoder_params.copy()
    if 'joschka' in decoder_params:
        new_params.pop('joschka')
    return new_params