Is there a way to automatically remove ngons?
From left to right:


Add loopcuts CTRL+R. Number of loopcuts = number of vertices (I marked them with blue dots) except those in the corners, because they already have a proper connection.
Select and delete Ngons: Delete->Faces. Select edges
Press W-> Edge Bridge Loops