Text this: Bethe $M$-layer construction for the percolation problem