Can I stop flesh eating plants from spawning?

You can put a light source that will light the area or remove the "back" wall on which they spawn. This goes for the non flesh eating plants and ghosts as well.