[geometry][cleanup] Use free reference element function

Merged Timo Koch requested to merge feature/use-free-ref-element into master

Merge request reports