Refactoring : needless to pass activity object.