Moved render system functionality outside render system class.