Staff worked through the night to extract the rock which was cracked and "posed a threat" to road users below.