Revert "fix_element_orientation mod"

This reverts commit 6ab8ea99feb26d7f58b501bd75dc03c3baeac7b7.
Cleanup fix_element_orientation()