Small improve to email partial pipeline on example app
Move common code to base class