Way too many steps to list. This is big job and you need a lot of trouble shooting skills. Not for the faint hearted. That being said here is the quick and dirty list.
Disconnect Battery and drain fuel.
Remove Pulleys from underneath mower.
Remove mounting Bolts.
Remove wiring. Pictures are very important at this point.
Remove all cables. Pictures are very very important.
Replace everything in reverse order.