Remove magic numbers in `get_height_valu()`