In my view it's fully tax deductible and in any case no different to what any one else does when they buy their endorsement at the time or prior to being employed by an airline.
It has never been tested, I suspect when there are sufficient numbers and the ATO is of the view there is a significant recovery to test this, they will.