Get rid of tempvar in #generic_directives