Refactor recorder Netty layer