Remove GUI code from Core library