I'm having trouble getting Milan out of the empire. What do I have to do?
If you're playing as Milan, you just bring up the HRE electors screen and click "Leave HRE". If you aren't, the AI pretty much never leaves the HRE, so you'll have to make your peace with that.