Remove unused code in custom renderers