Refactor AppDirect Helper