Clean up duplicate code in renderScene

Refs #3046