When grass grows out of a compost cap, it is very easy to pull, then you just add that to the center of another compost heap.
BTW, grass is not something that will hurt your garden plants, just snip it off and let it become part of a mulch layer.
The grass, when continuously forced to grow from nothing, will wear out the
root system and the plant will die at that point.