Extracted MainTextFormatter class from common activity