Factor out openflow parsing to a separate static method