Move as-patterns where they belong.