An interesting idea for configurability, but given that it seems these can only ever be called once, I suggest moving the entire definitions into "onCreate/onDestroy" and add a suitable namespace to allow a listener to knock them off. Can you think of any reason why these might be called externally?