Use an interface for management commands. Avoid globals.