Message reading refactoring.