Don't do a factory reset.
If you're set up with Coldboot Haxchi, that will brick the console, and if you're set up with Tiramisu/Aroma, it won't get rid of them because their chainloader is installed into preloaded software which doesn't get erased on factory reset.
There's no homebrew that...