Ore redemption machine mineral availability notice

The ore machine in cargo now sends a notice to the science department request consoles announcing the availability of new minerals. This only notifies science the first time the machine processes a new type of ore.
Can't you put the code in the Topic() in it's own proc so it can be called from the outside and pass the relevant info as arguments?