Refactor code on `render_world` and remove a commented line