Externalize text functions in text module