Refactor angle calculations into the Heading and Angle classes.