Simplify extension type handling.