Simplify conditionals in AST::Builder