Refactor the code to grab the low and high parts of a value