On the mechanisms of heavy-quarkonium hadroproduction