Better approach to getting the right heading level.