Rewrite the vector part of getExtendedTypeAction to make it more