renderer: Refactor helper functions to top-level (big unindent)
renderer: Refactor helper functions to top-level (big unindent)

MikeiLL/appension,Rosuav/appension,Rosuav/appension,MikeiLL/appension,MikeiLL/appension,Rosuav/appension,MikeiLL/appension,Rosuav/appension