Racial abilities are a bit hit and miss. Some you want to use as often as you can, where others a situational or non combat. The following is an example of how to check if you are an Orc and if so cast Blood Fury in a castsequence before Bestial Wrath.
the AMIORC variable:
function() if UnitRace("player") == "Orc" then return "Blood Fury, Bestial Wrath" else return "Bestial Wrath" end end
If you are an orc if will return BF, BW else it will return just BW
The 2 is the ClassID for Orcs - you can see the list here: https://wow.gamepedia.com/RaceId