[geometry][cleanup] Use free reference element function

5 jobs for !3184 with feature/use-free-ref-element
latest merge request