This reverts commit ab414f2ab8. Introduced in https://github.com/element-hq/synapse/pull/17599
ab414f2ab8