You use it at least twice, maybe a private method would be good for this functionality.