Make modes auto register with the factory.