i have had to remove the shell of the LM a time or too, as well. be sure to wrap the LM after removing the shell with Kapton tape to make sure it doesn't short out if it touches something.
i have also removed the circuit boards from loco's. as long as you mark the wires, or can trace them out so you know which is which, the circuit board is superfluous when you're using RP. if the loco in question is designed with incandescent bulbs, i would also remove those and switch to LED's with the appropriate resistors.