You look to have plenty of cable there for modification. It would be acceptable to use some kind of maintenance free junction box under the floor for example a Wagobox or a (pair of) Hager J503s depending on whether you keep that socket on the ring, or configure it as a spur.
Possibly if you...