Put the Text Varnish code in a separate sub class

Change-Id: I248574b854b517292e1c007d2f116f098fe757b9