= BroadcastMessageHandler() / / DI inject override fun onReceive(context: Context?, intent: Intent?) { handler.handle(action = action, intent = intent) } class BroadcastMessageHandler { fun handle(action: String, intent: Intent) { when(action) { ACTION_PUBLIC_BROADCAST - > executePublicThing() ACTION_PRIVATE_BROADCAST - > executePrivateThing() ⚠ Don’t copy/paste this ⚠