Use information of application site, to reduce possible arities.

Closes PR12905.