There was a macro on here earlier that makes it A LOT easier to leave bg without deserter, uhm... Lemme see if I can find it...
/script AcceptBattlefieldPort(1, 1)
/script AcceptBattlefieldPort(1, 0)
use the macro to both enter and leave bg = no deserter.
hope this was helpful, credit goes to go who posted it on here