How Safety Training Shapes Model Behavior