'Reformat CHP data format to JupyterHub\'s proxy API.'

def _reformat_routespec(self, routespec, chp_data):

    target = chp_data.pop('target')
    chp_data.pop('jupyterhub')
    return {'routespec': routespec, 'target': target, 'data': chp_data}
