Third partition for factory FW and reset

I would like to implement a push button reset that doesn’t just wipe conf9 (as is outlined in the provision library notes) but would actually switch the boot partition to a third partition that stores a factory installed image. Is that possible?