Hmm. This one line occurs 4 times. Seems like maybe it belongs in a function.