Generally, it is considered a good idea to remove the painting from the frame, as it helps pack and secure both of them separately. However, the other approach is also a good one if you can secure the outer glass with the help of tape and bubble wrap.