lift rules variable out of grammar grammar
lift refs variable out of grammar grammar