Share netty handler logic