Moved the layer styles deletion logic from the view to the model's signals.