I remember when we bought our new house and the neighbour had an electric cat flap installed into the wall cavity (battery was still accessible). Then it broke. They had to cut it out and replaced it with a standard flap mounted externally.