Getting rid of the muck where small flies breed is one of the only ways to eliminate the pests for good.