This was not an easy task. Despite what you might read, removing the hardware from jeans is difficult. My original plan was to take off the flap and leave the jeans as is. When the flap was removed, the jeans were left with what looked like a dark "eyebrow". It looked terrible. I used some denim from an old pair of shorts to create a layered pocket. Much better.
So, if you nearly ruin a pair of jeans, there's hope of fixing them.