Conditionally transpile generators