Quantum Mechanics and the Principle of Maximal Variety