and also, not duplicating this code, this means that if in the future we need to change this, we'll have to change it only at one place, so there is less risk of doing something wrong :)