Many believe capital deployment should follow a "pecking-order theory" that prescribes that managements should apply their cash flow, in order of priority, to fix their balance sheet if overleveraged, fund organic investments, pay dividends, fund acquisitive growth and, only when there is additional cash left over, to distribute it via share repurchases.
WSJ: The Pros and Cons of Stock Buybacks