Console variables, settings if you will. Can see a bunch of them with the addon Advanced Interface Options.
/run SetCVar("autoUnshift",1)
The description of this particular cvar is; "Automatically leave shapeshift form when needed"
By enabling this you wont need any macros for /cancelaura Bear...