Remove ParserOptions::legacyOptions() and cleanup related code