Refactoring automation for outputRichText
Merging origin/skhan/master-pending-OutputRichTextAutomation into master