Anyone else have reptiles?

Me

I have a tortoise and a bearded dragon. The beardie has tile for the substrate and the tortoise of course has a mixture of eco earth, a little bit of reptisoil for the plants, and some mulch. I’ve been noticing some sugar flies coming from his enclosure, I plan on replacing his substrate but wanted to see what I could get that will help get rid of the bugs.