Render with render.
Split the long file and the long function.