Refactors the helpers to extend an abstract class for common logic like setting the app root