Let the factory be added to externally.

This will let external modules add their own commands.