factor out Executable#options_from