Those buttons. I am asked all the time: “Can we hide or remove some of or all of these buttons?”
YES. You can!
Fun thing: these are just custom actions. You can edit them, including adding conditions!
Go! Search for them! Go to the Custom Actions tab and look at the actions for Location = Line. Customize to your heart’s delight!
Caveat: The Custom Action Condition: “Field” field can not be a formula field.