Includes a minor optimization: reading the current level from an org-element object, rather than relying on (org-current-level), which resorts to walking the buffer with regex.