There is some sticky material on the inside combined with two plugs attached to the badge. That keeps the badge in place. However, I noticed that one of my badges was loose after I visited my dealer once. As if someone tried to remove it, but failed due to the sticky stuff.
I removed the badge by hand, put some extra double sided tape inside and refitted the badge to it's original position. There should be no real issue to paint your fairing, as long as you cover the inside holes for the two plugs attached to the badge and use a litte double sided tape (not too thick or the badge will bulge out).
