commsec: refactor opts parsing into flight.