Convert "tcp" handler to use parse rules