Refactoring user privacy setting