This is something I try to watch for when framing the shot. Changing my shooting position to eliminate background issues is a very common approach. I find using a tripod helps here because it lets me see exactly what is in the frame and lets me adjust my shooting position and shooting angle.