delete old contextFactory