Refactor CursorAdapter loading