Merge handling of extends and include.

As they both have the same char length.