What bugs me is that no one in the games explains probably why Synths are dangerous and that makes it look like the BoS hated them for no reason.
What if one Synth decided that Synths should rule the world and enslave humanity? -we kinda destroyed the world- He then reprograms other Synths so they fight for him. Everyone would be against this Synth faction, so even if you sided against Railrod and BoS, the Institute would still help you. And it could even be a reference to the the Mutant Army and the Master from the first Fallout, trying to recreate the feeling and the atmosphere.
Maybe at the end the Sole Survivor either helps the Institute to regains control over these Synths or he unleashes a digital Virus that damages the hardware of Synths in a way that prevents them from being reprogrammed. Or you side with them and become a cool Cyborg.