Bebop2 revert firmware to original factory firmware


I am trying test some visual odometry algorithms on Bebop2 but it does not provide any IMU raw data. So, I was thinking of using ArduPilot. Has anyone used Ardupilot and reverted back to Bebop firmware. I just want to make sure that it can be reverted back after installing ArduPilot. If anyone has reverted back, can you please reply on how to revert back?