Noticed the same two lines being used in three different catches, so moved it into a helper.