Swap the Literal Grammar with the Variable Grammar. Remove useless references.