Split setABI in two helpers. No functionality change.