Move socket option code position