Move all render-specific functions to renderer module.