Moved renderer-specific code into renderer package