Move setopts into its own file