Move management helper function to new utils module.

This allows us to iremove an inter-command import.