The fix seems pretty straight-forward. I moved the mounting plate over...
And mounted the solenoid right back up:
From here I have to swap around the 90 degree fitting and bend the brake lines a bit. I might have to replace one of them altogether. But it looks like this will be okay after all.