from typing import Dict


def flatten_outputs_paging(raw_response: Dict) -> Dict:
    """
    flatten the paging section of the raw_response - i.e removes 'cursors' key.
    Args:
        raw_response: response of an API call

    Returns: outputs dict

    """
    paging: Dict
    paging = raw_response.get('paging', {})
    outputs = raw_response.copy()
    cursor_before = paging.get('cursors', {}).get('before')
    cursor_after = paging.get('cursors', {}).get('after')
    outputs.pop('paging', None)
    outputs['paging'] = {
        'before': cursor_before,
        'after': cursor_after,
    }
    return outputs