Normalize code between renderers