Message parsing moved to CommandFactory.

Code contracts removed.