Simplify component rendering code