Refactor weak reference on activity