Can we write this without duplicating this line?