Refactoring text protocol handler