remove used flags/rules