Change the order of traits importance.
Revert "Change the order of traits importance."

This reverts commit 4b6ae327c9f142133aec45489042b78d2f68d039.
Replace contains with subsumes check.