Create a function limit_speculation_by_influence and call it from both signals instead of duplicating code