Added retry pattern to ADRepository along with surrounding the call blocks with using statements and removed unused methods