Make one static method for commonly used functions across whole activities. Log-in/out action menu item handling logic