Refactor get_highlight_reverse to be useable by other themes