OK I managed to detach the two cables and remove the old modem. Here is what it looks like underneath: