private function buildStrategiesKey($strategies)
    {
        foreach ($strategies as $name => $config) {
            switch ($config['strategy_class']) {
                case 'Basecamp':
                case 'Behance':
                case 'Bitly':
                case 'Do':
                case 'Dropbox':
                case 'Evernote':
                case 'Foursquare':
                case 'GitHub':
                case 'Google':
                case 'Harvest':
                case 'Instagram':
                case 'Live':
                case 'Mixi':
                case 'Strava':
                case 'Yahoojp':
                case 'Yammer':
                case 'ResourceGuru':
                    $config['client_id'] = $config['id'];
                    $config['client_secret'] = $config['secret'];
                    unset($config['id']);
                    unset($config['secret']);
                    break;
                case 'Bitbucket':
                case 'Flickr':
                case 'SinaWeibo':
                case 'Twitter':
                case 'Vimeo':
                    $config['key'] = $config['id'];
                    unset($config['id']);
                    break;
                case 'Disqus':
                    $config['api_key'] = $config['id'];
                    $config['api_secret'] = $config['secret'];
                    unset($config['id']);
                    unset($config['secret']);
                    break;
                case 'LinkedIn':
                    $config['api_key'] = $config['id'];
                    $config['secret_key'] = $config['secret'];
                    unset($config['id']);
                    unset($config['secret']);
                    break;
                case 'Facebook':
                case 'PayPal':
                case 'VKontakte':
                    $config['app_id'] = $config['id'];
                    $config['app_secret'] = $config['secret'];
                    unset($config['id']);
                    unset($config['secret']);
                    break;
                case 'Tumblr':
                    $config['consumer_key'] = $config['id'];
                    $config['consumer_secret'] = $config['secret'];
                    unset($config['id']);
                    unset($config['secret']);
                    break;
            }
            // Set new configuration
            $strategies[$name] = $config;
        }

        return $strategies;
    }