Like @danielbachhuber said in growthdesigner/wp-dash#7 we should encapsulate the  to a Class then use private/public methods