It is also a good idea to work on bite prevention and bite trigger-identification, so you can stop the problem before it happens.
If your bird is getting to the point where he is biting or lunging at you ... it is very likely that he was showing other body language leading up to the attack. Learning to read the situation and watch for more subtle early signs so you can easily recognize what lines your bird doesn't want you to cross can really help save your fingers in the long run.
Parrot ownership tends to involve a great deal of compromise. Hand-raised baby parrots are set to "easy mode". They will let you get away with all sorts of stuff and not complain. But as they get older, they start developing opinions and sassy teen parrot attitude. They start to say "no" when you ask them to do something they don't like. And if you ignore their subtle "no", they need to say it louder ... and if you still don't get the message, that's when you get da beak! It is really hard to miss that signal, so once they figure out that it works, you can expect that it will get used more often.
And that's why we see a lot of posts on AA from new parrot owners with sweet, loving baby parrots who transformed into terrible bite-monsters seemingly overnight and without any apparent warning. Chances are good that early warning signs were present, but they were being missed or ignored until the biting started. And if they continue to mis-read the situation, the biting just gets worse.
Fortunately, parrots are smart and they learn quickly. A good parrot is a worth the extra effort to understand and teach better ways to communicate their wants and needs. Especially with a flightless bird, it is important to have good lines of communication so the parrot can let you know if he is getting frustrated or bored and needs your help to get out of a bad situation. He will be extra reliant on you for transportation and general awareness.
If you haven't looked into target training yet, I highly recommend it. It can help in a lot of different ways. Creative compramises and different approaches to parrot handling can also make a huge different in how often you come into conflict with an adult parrot.