220V Home Automation PCB
Drill extra top and bottom holes (green) to place a 5.08mm (or 5mm)
pitch  screw terminal block 
Cut and remove the trace to the unused holes (sky blue)
Cut slots (green) to separate the coil terminals from the relay
common
Add wires (white) linking the unconnected relay terminals to the
terminal block
That LED will need to be moved too, and its wiring ripped up




Next time consider using relays that have the contact terminals at one end and the coil terminals at the other end,  eg NAIS JW1 series or Omron G5Q series.

The ESP module works best if there is no PCB under its antenna and especially no planes or traces. so you may want to relocate that 5V line too.