This could be extracted to a method with a proper name.