Are you saying to move the default into it? Or remove any external type determination at all? 

The render method of the charmbrowser explicitly has no default rendering state to make it clear when something is not calling it correctly so moving this assignment in there feels against that goal.