Reorganize grammar into available and enabled.