At my last company, the team's budget for merit increases was based upon the size of the team. More headcount meant more money available for promotions and fixing historical pay imbalances. It was not a good system that directly caused good employees to leave.