Move the optlevel check to the frontend.