Remove unnecessary as-pattern