Simplify code generated for calls to built-in functions