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