Morse–Bott cohomology from homological perturbation theory | Synapse