Mechanistic flexibility of the retrosplenial cortex enables its contribution to spatial cognition.