I think I've seen this exact line of code in ~3 different  places. Looks like the perfect opportunity for a helper!