The Hofmann rearrangement using NBS