The only solution is to draft well and have a complete and talented coaching staff, to become undeniable. To basically become good enough to the point that the refs can't screw you.
There is that, but that's not foolproof. The real only solution is to be Goodell's buddy. Goodell only cares about $$ so you better sell a lot of jerseys to get that untouchable ref treatment.