Removed the two screws at the back holding in the element connector and the two screws on the roof of the oven holding the brackets. Then carefully pulled the connector out from the back so as not to disrupt the heat insulation too much, disconnected the two spade connectors from the old element, connected them to the new element, inserted the new element into the opening at the back, and replaced all four screws.
I also replaced the bake element on the bottom at the same time, which was similar except it only had the two screws at the back.