Our vet suggested dissoving some BioZet washing powder in water in a spray bottle & spraying that on because the enzymes in it get rid of the ammonia smell.

If you figure out how to stop it let me know. Our kitten is now 9 months old & we've resorted to keeping him outside 95% of the time because nothing else worked.