Clean up hint position math.