Refactoring set visibility in activity service