Simple refactoring on Arrayadapter