You can't, completely. Some parts that have to be there are carrier-branded. (You'd have to pull the hardware interface from the existing ROM, then compile Android manually, using that hardware interface software, then flash what you compile. If you could do that, you wouldn't be asking.)