For that matter, if you look at the examples there are a couple of other lines that could be moved into this method to DRY it out.