BTw here's some information I found:
In the compost, those are not maggots but worms.
Maggots only eat meat.
Worms eat the the sugars and grain turning it into compost.
This is a good thing. Apparently they like sugar and acid.
Supposedly spent grain and coffee grounds are the ideal combination.
They reduced the level of my compost bin considerably in less than a week.