Looking at the wiring it’s likely going back to the fused connection unit, which is better for you so you don’t need to remove the boiler casing (would need checking for safety afterwards). If you can find out if the blue is connected to the neutral, and if not, it could be done. This would give you a permanent live and permanent neutral, then linking the L to com and then use the switch live to the boiler, which is your yellow.