Simplify position_on_element.