Extract framework specific rendere code into classes