Its fixed in place in the downtube usually with a bolt or two, then the motor fitted to the frame, leaving it a neater profile. The motor then needs to be removed to drop out the battery.
He's talking about the new Spech (and some old), Giant from a few years ago, Ibis Oso etc.. where a battery...